package io.dshubs.archives.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.dshubs.archives.entity.ArchiveBaseRule;
import io.dshubs.archives.entity.ArchiveWarehouseZone;
import io.dshubs.commons.mybatis.service.BaseService;
import io.dshubs.commons.tools.page.PageData;
import io.dshubs.commons.tools.utils.Result;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 库区表 服务类
 * </p>
 *
 * @author tan
 * @since 2021-08-16
 */
public interface ArchiveWarehouseZoneService extends BaseService<ArchiveWarehouseZone> {

    /**
     * 分页查找
     * @param params params
     * @return PageData<ArchiveWarehouseZone>
     */
    PageData<ArchiveWarehouseZone> page(Map<String, Object> params);

    /**
     * 删除
     * @param collect ids 集合
     */
    void deleteBatch(List<Long> collect);

    /**
     * 保存库区
     * @param archiveWarehouseZone archiveWarehouseZone
     */
    void save(ArchiveWarehouseZone archiveWarehouseZone);

    /**
     * 修改库区
     * @param archiveWarehouseZone archiveWarehouseZone
     */
    void update(ArchiveWarehouseZone archiveWarehouseZone);
}
